<template>
  <div class="read-page">
    <!-- 背景层 -->
    <div class="immersive-background"></div>
    <!-- 半透明遮罩 -->
    <div class="immersive-overlay"></div>

    <div class="container py-5 position-relative">
      <div class="card immersive-card shadow-sm">
        <div class="card-body p-4">
          <h1 class="mb-4 text-dark">阅读文章</h1>
          <!-- 阅读功能的实现内容 -->
          <p>
            这里可以放置文章列表、文章内容区、分页阅读等功能的实现。
          </p>
          <!-- ... -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ReadView",
};
</script>

<style scoped>
.read-page {
  position: relative;
  min-height: 100vh;
  margin-top: 80px; /* 若有导航栏，可留出相应高度 */
  overflow-x: hidden;
  overflow-y: auto;
}

/* ======= 背景与沉浸式风格 ======= */
/* 这套示例以柔和的奶咖色到浅咖色渐变 */
.immersive-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f7ede2 0%, #f3d5c0 100%);
  z-index: -2;
}

.immersive-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ======= 半透明卡片 ======= */
.immersive-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.immersive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
</style>
